<?php
/**
 * Created by PhpStorm.
 * User: admin
 * Date: 2016/9/13
 * Time: 15:08
 */
date_default_timezone_set('PRC');
define('ENV', 'dev');
define('LANG', 'HK');//國家代碼
define('BASE_CONFIG', dirname(__FILE__) . '/config');
define('BASE', dirname(__FILE__));
define('API_HOST1', 'http://wru8zys.zwbpay.com/payment/interface/do');
define('API_HOST2', 'http://wru8zys.gtopay.com/payment/interface/do');


switch (ENV) {
    case 'dev':
        define('SERVER_ROOT', 'http://192.168.0.35:8080/jh_source/');
        define('WEB_ROOT', '192.168.0.35:8080/jh_source/');
        define('COLOR_IMG', 'http://192.168.0.35:8080/jh_source');
        require 'config/config_dev.inc.php';
        break;
    case 'test':
        define('SERVER_ROOT', 'http://www.linchpin-shop.com/');
        define('WEB_ROOT', 'www.linchpin-shop.com');
        define('COLOR_IMG', 'http://www.linchpin-shop.com');
        require 'config/config_test.inc.php';
        break;
    case 'prod':
        define('SERVER_ROOT', 'http://www.linchpin-shop.com/');
        define('WEB_ROOT', 'www.linchpin-shop.com');
        define('COLOR_IMG', 'http://www.linchpin-shop.com');
        require 'config/config.inc.php';
        break;
    default:
        break;
}

